package mywebapp.tools.struts;

import mywebapp.impl.*;
import mywebapp.dao.*;
import mywebapp.webpage.*;

public class ERROR_STRUTS
{
  protected static String nl;
  public static synchronized ERROR_STRUTS create(String lineSeparator)
  {
    nl = lineSeparator;
    ERROR_STRUTS result = new ERROR_STRUTS();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "<html>" + NL + "\t<head>" + NL + "\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">" + NL + "\t\t<title>Error</title>" + NL + "\t</head>" + NL + "\t<body>" + NL + "\t\t<f:view>" + NL + "  \t\t\t<h1>Failed Form</h1>" + NL + "\t\t</f:view>" + NL + "\t</body>" + NL + "</html> ";

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    stringBuffer.append(TEXT_1);
    return stringBuffer.toString();
  }
}
